<template>
  <div>
    <div class="search">
      <input v-model="keyworld" type="text" class="search-input" placeholder="输入城市名字或拼音">
    </div>
    <div 
      class="searc-content"
      ref="search"
      v-show="hasNoData"
    >
      <ul>
        <li 
          class="search-item border-bottom"
          v-for="item of list"
          :key="item.id"
        >
          {{item.name}}
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CitySearch',
  props: {
    cities: Object
  },
  data () {
    return {
      keyworld: '',
      list: [],
      timer: null
    }
  },
  computed: {

  },
  watch: {

  },
  mounted () {
    
  }
}
</script>

<style scoped lang='stylus'>
  @import '~styles/varibles.styl'
  .search
    height .72rem
    padding 0 .1rem
    background $bgColor
    .search-input
      box-sizing border-box
      width 100%
      height .62rem
      padding 0 .1rem
      line-height .62rem
      border-radius .06rem
      color #666
      text-align center
</style>
